package cn.xmkeshe.back.impl;

import cn.xmkeshe.back.IFleetServiceBack;
import cn.xmkeshe.dao.IFleetDao;
import cn.xmkeshe.model.Fleet;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IFleetServiceBackImpl implements IFleetServiceBack {

  @Resource
  private IFleetDao iFleetDao;

  @Override
  public List<Fleet> findAll() {
    return iFleetDao.findAll();
  }

  @Override
  public boolean add(Fleet fleet) {
    return iFleetDao.doCreate(fleet);
  }

  @Override
  public boolean editFleet(String introduction, String name, int fleetid) {
    return iFleetDao.editFleet(introduction,name,fleetid);
  }
}
